package com.junchao.peng.service;

import com.junchao.peng.pojo.File;
import com.junchao.peng.utils.JsonResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author dell
 */
public interface FileService {
    JsonResult deleteByPrimaryKey(Integer id, String token);

    JsonResult insert(File file, String token);

    JsonResult insertSelective(MultipartFile file, String token);

    JsonResult selectByPrimaryKey(Integer id, String token);

    JsonResult selectByUrl(String url, String token);

    JsonResult listFile(String token);
}
